Internet Archive BookReader - Theory of maxima and minima