Serial prefix sum