Minor optimizations to one way anova