moved grid trajectory APIs to new GridTrajectory class