A conjugate gradient method with inexact line search for unconstrained optimization