Created code for caching the inverse of a matrix
Updated code for matrix inversion and added comments