Update tree.hpp