[SPARK-2359][MLlib] Correlations

Implementation for Pearson and Spearman's correlation.
Care to edify me on the performance difference? Smaller closure to be serialized? What's a good rule of thumb for when to use `map` v `mapPartitions`?