refactored anova classification to make it kind of similar to that of scikit
package