added function to check Binary tree is BST or not