A Partitioned Experience Method For Trajectory Prediction Of Pedestrians