[SPARK-2359][MLlib] Correlations

Implementation for Pearson and Spearman's correlation.
`cov` is local and has random access. Updating its diagonal is cheap.