Merging sorted blocks stage 1.