welford implements an algorithm for computing mean and variance