cached mean of an vector
cached inverse of a matrix