cached matrix inverse solution