[SPARK-2359][MLlib] Correlations

Implementation for Pearson and Spearman's correlation.
It is okay to keep it as long as the `Correlation` class is private.