fix unitialized sum to compile without warnings
Merge pull request #6 from martinfaust/fix-unitialized-sum

fix uninitialized sum to compile without warnings