Removing the duplicate points in the 2 trajectories.