Implementation of algorithms for an exclusive prefix sum on Nvidia CUDA