slist to bst