I write two functions that stores a matrix and cache's its inverse matrix