scan works with different thread block sizes 256, 512 and 1024