Working on CUDA parallel-for