Write a function eval that evaluates a step function, via sequential (aka. linear) search. A step function is defined by an ordered sequence of n boundary points, (x0, x1, x