finished merge sort in c