[SPARK-2515][mllib] Chi Squared test

`mkString("[", ",", "]")`