finish mergesort