add merge sort code and test code