BST balance check