Conjugate gradient training algorithm