wrote merge sort.

Merge sort might need to be cleaned up. The test seems to pass