First steps in CUDA to extend the example code to 3d