copy unmerged records in merge sort to new buffer