Variable inclusion

Included mean subtraction in standard variation algorithm.