partial sum implementation
Merge pull request #39 from gnzlbg/partial_sum

Partial sum implementation