fixing bst recursion