Update reducer.R
Merge pull request #10 from amitghosh-inwt/patch-2

Update reducer.R