Changing the matrix inverse code to the full code