Inverse Of Matrix

This is my code for caching the inverse of matrix.