implement initial reduce logic
Merge branch 'master' of github.com:dlau/chafe.py