Code for inverse matrix

This is the code for calculating inverse of a matrix