ENH speed up sklearn.feature_selection.chi2

New version is ~4× faster and reuses allocated arrays.