Function minimization by conjugate gradients