Gaussian elimination method for linear equations