[SPARK-2359][MLlib] Correlations

Implementation for Pearson and Spearman's correlation.
I don't think there is performance difference. But `.map { ... }` is more concise than `.mapPartitions { iter => iter.map { ... } }`.