Provides a method to compute a maximum value incrementally.