Fixed the matchFamilies and the mergeTracks functions.