Example 3.29, first version

fold tail recursive not valid for depth and map

non-tail recursive fold taken from solutions (to find out how to do depth and map with fold)
Exercise 3.29, with two versions of fold:
* tail recursive (used with size and maximum)
* non tail recursive, taken from the solutions (used with depth and map)