3D CUDA implementation (09/23/2013)