writing the two functions of caching the inverse matrix according to the example "Caching the Mean of a Vector"