https://hgpu.org/?p=1973
Fast scan algorithms on graphics processors