mergeSortPar in FP style