implement cg solver