merge_sort is modified