Tree now keeps track of the height of each node.