add merge sort C implementation