working naive parallel scan/prefix sum