Adds new methods to the Tree class