mt_add_variables function

Add new variables to trajectory array.