[SPARK-2359][MLlib] Correlations

Implementation for Pearson and Spearman's correlation.
`covariance` -> `corr`

Note that `cov(i, i)` could be zero.