Have written two functions to compute the inverse of matrix using cache concept