Solving unconstrained optimization with a new type of conjugate gradient method