Instead of having two classes, we only need one accumulator class. `variance` can be computed on demand. Use `StatCounter` as a reference implementation.