welford implements a one-pass algorithm for computing mean and variance