refactoring whitening so we can save X_avg and W matrix.
fixing bug.
Merge branch 'master' of github.com:barapa/lenin