my function to cache inverse of matrix