Complete initial CUDA implementation