modified exclusive scan to inclusive scan by shifting