Add couple of functions to compute inverse of matrix efficiently.