Refine Merge Sort