Complete working functions to create special matrix and calculate inverse using solve but first checking if it exists in cache.