bst functions incomplete