Find diameter of a given Binary Tree

O(N logN) solution. Coz each node is treated like root to find diameter
along it.