diameter of a binary tree