Compute the inverse of a matrix using NumPy