[SPARK-2359][MLlib] Correlations

Implementation for Pearson and Spearman's correlation.
Use `zipWithUniqueId`, which doesn't trigger a job.