First pass at mergesort.