implemented maximun heigt of binary tree