cache matrix inverse change

cache matrix inverse change