Disk based iteration based on merge sort