tree.hpp : fucked code