update the function of matrix inverse