Parallel scan and reduction kernel basics