two-way merge sort algorithm

two-way merge sort algorithm in C