Initial implementation of the inverse caching matrix solution