Replaced Quicksort with MergeSort