Fixed CG
Fixed CG

- recompute R every 50 iterations for stability
- recompute R when converged to make sure it is really converged

FrontISTR/FrontISTR,FrontISTR/FrontISTR,FrontISTR/FrontISTR,FrontISTR/FrontISTR,FrontISTR/FrontISTR