made jacobi solver use sum of error instead of max