Added test and example files for the accumulate problem
Merge pull request #7 from ahalls/accumulate