Redux of Apple's OpenCL Prefix Sum example: https://developer.apple.com/library/mac/samplecode/OpenCL_Parallel_Prefix_Sum_Example/Introduction/Intro.html