Caching the Inverse of a Matrix

This function is used to perform the inverse of square matrices