Routines for analyzing single molecule trajectories