cache matrix inverse functions