Merge pull request #3 from degloff/master

generic reduce ready
Merge remote-tracking branch 'upstream/master'