added welford algorithm for variance