Add a cumulative sum to KeyedList

Add a cumulativeSum that doesn't take a function.

Add comments. Rename partition function.