small refactoring in MergeSort