Check in the solution for matrix inversion caching