Nonrigid Structure from Motion in Trajectory Space