Completed merge sort