Correlatiion coefficient calculations

Correlations can be calculated on raw data, data sets or groupings.
I've not handled empty array so I'll add some tests and update.