[SPARK-2786][mllib] Python correlations

`twoDArray` or `arr`? `twoDarray` doesn't follow the naming convention.