Added maximum function to Tree