[SPARK-2359][MLlib] Correlations

Implementation for Pearson and Spearman's correlation.
The code fits a single line: `val column = indexed.map { case (vector, index) => (vector(k), index) }`