Diameter of a binary tree