Takes two lists and performs merge sort.