Initial thread api
Right reduce
Merge pull request #3 from alexogar/rightReduce

Right reduce and threads from mikhail