Additional helper functions added.

Added some functions:
- forEach
- forEachRow
- clone
- map
- sum (compute row sums)