Use numerically stable variance, instead of E[X]^2-E[X^2].

Fixes locked-fg/JFeatureLib#20