Max path of a tree.