[SPARK-2515][mllib] Chi Squared test

We don't need to worry about this case. Having that many categories in chi-square tests is not common and it is against the assumption of chi-square test. 1000 is already very large.