Moved _merge_tracks() out of MidiFile. Possibly exposing it at some point.