Gaussian elimination method for solving linear equations C implementation