Adding algorithm for dis rand traj: extent + #points