Optimized Parallel Reduction for Regular and Irregular Segments on GPU | Synapse