Use sum instead of reduce-add.
Merge pull request #1 from jmmcd/master

Use sum instead of reduce-add.