Solved exercise 27 : implementing maximum function in Tree