mt_resample function

Resample trajectories using a constant time interval.