Add online variance algorithm

Add a numerically stable algorithm for the computation of the variance
(and the mean as well).
Format the code with 4-space tabulation
Merge pull request #2 from GHamrouni/master

Add online variance algorithm