add wrapper for a matrix and store its inverse value in cache, also code to get inverse from cache