Implemented height and isBalanced methods for BST