Provides a method to compute a moving sum incrementally.