Apply jacobi.cpp to a specific problem