fixed iterative merge sort