Computing mean and standard deviation of a list using online algorithms