projection method for solving system of linear equations