largest distance between nodes of a tree