Create iteratorForTree.cpp