consolidate two iterators