1. code for transforming an atomic matrix to a cacheable matrix
2. code for calculating inverse of a cacheable matrix