clean gauss-seidel prototpye