factored out Reduce code; this is now accessable to any method or function that needs it
Merge branch 'master' of https://github.com/rgrannell1/codeR