Make line search functor.
Remove static.