adding accumulate example
Merge pull request #2 from Mageswaran1989/accumulate_sample

adding accumulate example