[SPARK-2359][MLlib] Correlations

Implementation for Pearson and Spearman's correlation.
If `zipWithUnqueId` is used, this block becomes unnecessary.