improved BinaryTree isBalanced solution