finished the merge sort, and it works!