+ implemented reduction algorithm and couple of tests
+ added basic test infrastructire