update to MergeSort.m