Incremental Learning of Motion Primitives for Pedestrian Trajectory Prediction at Intersections