finish matrix inverse cache assignment