Implemented matrix inverse cache