[SPARK-2359][MLlib] Correlations

Implementation for Pearson and Spearman's correlation.
I think this comment could be removed since the line below if not very hard to understand.