Mergesort implementation in C.