Check in BST.