Optimized Parallel reduction