Implemented cachable matrix inverse operation