find length and endpoints of the longest path between two nodes in a binary tree