Adds a cumulative sum extension