updated cuda_ex1 to demo use of c++ classes with CUDA