mergesort in c