Diameter of a tree.