implemented a height method on the BST class