Added code for the 2 functions to do cached inverse of square matrix