changed with my code to make two functions to get the inverse of a matrix and to set it in cache