add the option for multiple trajectories to DisplayTrajectory