added matrix inverse cache functions