Add online variance algorithm

Add a numerically stable algorithm for the computation of the variance
(and the mean as well).