ADDED prefix sum (beloch) bugged at upsweep phase