Weighted Jacobi implemented