Updated Tree.cpp

- Added functions