[SPARK-2359][MLlib] Correlations

Implementation for Pearson and Spearman's correlation.
Follow ScalaDoc for methods. It is worth noting the cost for spearman.