Solving systems of linear equations by elimination