[SPARK-2359][MLlib] Correlations

Implementation for Pearson and Spearman's correlation.
I think the most honest result is NaN. R will return an error for example. You will get that already as the result of 0.0 / 0.0 in the JVM. It's worth documenting!