Merge sort with blocks