Added check if tree is BST