WIP for a Tree fold function
Finishing the treeFold by using a treeToList
The first function needed by the parser