udating the code to create a special matrix and compute the inverse of matrix