gauss-seidel function finished, prob 3 essentially done