Routines for maniuplating and analysis single molecule trajectories