A Modified Conjugate Gradient Algorithm