method to check if binary tree is BST added.