Merger sort in place.