the solution of the TreeHeight