Gaussian elimination for solving system of linear equations