week 8: treeFold implementation + tests