An Algorithmic Approach to Elementary ANOVA