Creating functions to store a cached version of a inversed matrix