Segmented Scan

Still working on parallel primitives