Matrix Inversion Caching Code Added