Update iteratorForTree.cpp