new code with several kernels to illustrate different memory access
clean up