Finds the inverse matrix of any matrix with mpi