Partial sum implementation

See your other comment about the WeakOutputIterator<O, Y>