Small error in reduceBlocks()

Hi there,

In reduceBlocks(), numThreads is set incorrectly to 0 when numElements == 1. This means that the reduce kernel doesn't get called.

Thank you for a great code base!
- Anders