Trying to find inverse of a matrix