The code for matrix inversion and the test cases are added