Distance between two nodes in a Tree