bst to list