[SPARK-2359][MLlib] Correlations

Implementation for Pearson and Spearman's correlation.
It doesn't matter because it doesn't affect the variance and the correlation.