implements BinarySearchTreeIterator