Fixed mergesort