Parallel scan algorithm

Added segmentation support for exclusive scan (Blelloch)