added reduction functionality
Merge pull request #1 from isilien/olgerd-reduction

added reduction functionality