[add] diameter and height of a binary tree