Parallel scan algorithm

First cut implementation of Hillis/Steele inclusive scan and Blelloch
exclusive scan just for the fun of it. There's still room for
improvement with respect to performance. For instance using shared
memory.