Refactor Gauss_Seidel.solve