Multiple Pedestrian Tracking Based on Multi-layer Graph with Tracklet Segmentation and Merging