Two way merge sort program in c