Implementation of a Cacheable Matrix Inverse