merge sort iterative in java