Add merge sort function
Add unit testing for merge sort