Add getMaxHeight method to the Tree