Update createtree.cpp