Add the C implementation of mergesort