revised files to cache inverse of matrix