assignment 2, merge sort