fixed the merge tool by rewriting internal merging iterator class.