Create longestTreePath

get the longest path in a tree