Techniques for solving linear equations