computing the inverse of a sqaure matrix

this solves the problem of inversing the matrix

Signed-off-by: Kanika <kanika.agarwal1904@gmail.com>