Add a few functional programming functions.
Add reduce fn.