Implementation of cache matrix inverse methods