Expose summation of values and of their squares.
Unit test these.

Unit test that the internal caching isn't getting in the way of things.