MultiMergeIterator turned into a generic class.