Add HeapIterator class for later implementation.