Pedestrian Dynamics in Single-file Merging Flows