handling empty BST in contains