Improve Merge function with ListIterators.