Cached Matrix Inversion