Bonus ex. 4b (almost) done

There is still some typing problem: uncomment the signature of depthFirstFold and you'll see what I mean.
Merge pull request #1 from tjanson/patch-1

Bonus ex. 4b (almost) done