add printTree.cpp