Efficient matrix-free direction method with line search for solving large-scale system of nonlinear equations