add implementations of five mathematical functions

- sum
- product
- horner
- maximum (inefficient implementation)
- minimum (inefficient implementation)