finish the two function makematrix and compute its inverse