Working on CUDA parallel-for
merged