KWayMerging.java updated