Changes done on 27/4/2014 for the code to run on matrix cahing its inverse, instead of vector caching its mean.

Signed-off-by: Waleed-Hassan <Waleed.magdy.91@gmail.com>