[SPARK-2359][MLlib] Correlations

Implementation for Pearson and Spearman's correlation.
number of partitions in input RDD is better given the two choices since defaultParallelism can be unset (in which case we need a copypasta of the second half of Partitioner.defaultPartitioner)