Update and rename BSTToList to TreeToList