[SPARK-2359][MLlib] Correlations

Implementation for Pearson and Spearman's correlation.
Agree with @srowen : set NaN and generate a warning message. Btw, R returns a warning message instead of an error.