fixed cacheIterator for binary tree.