Conjugate gradiet method