More accurate calculation of variance and standard deviation for large number of samples with low variance (now using Welford's method).