BST to list