add aggregation functions including corr, covar,regr-slope, regr-interce...

add aggregation functions including corr, covar,regr-slope, regr-intercept and unit tests.

This seems to be repeated in all of the subclasses