Check if a Tree is BST or not