Renamed pyramid _merge to pyramid_mergesort for consistency