chached matrix inverse