Added function implementations to cache the inverse of the matrix