weighted incremental computation of mean and variance

From
http://www-uxsup.csx.cam.ac.uk/~fanf2/hermes/doc/antiforgery/stats.pdf.
Merge pull request #4 from masverba/incremental-mean-variance

weighted incremental computation of mean and variance