stepit function

Compute a new step size for a linear search within an optimization algorithm.