[SPARK-2359][MLlib] Correlations

Implementation for Pearson and Spearman's correlation.
What do you want returned when cov(i, i) is zero? Double.NaN? 0.0?