[SPARK-2359][MLlib] Correlations

Implementation for Pearson and Spearman's correlation.
FWIW I tried it with zipWithUniqueId, and, as expected, the results were wrong when more than 1 partition is used.