implementation the non-recursion algorithm for st_bst
fix _st_bst_destroy bug