refactoring jacobi.c with GSL

jacobi method is very similar to gauss-seidel method