Add reduce() for building up a new value from a tree.
Clean up collection of sub results.
Merge pull request #67 from pdubroy/reduce2

Add reduce() for building up a new value from a tree.