Rewrite CTABlocksortLoop and name it bounded_inplace_merge_adjacent_partitions.