wrote and tested jacobi and gauss-seidel iterative methods