Modified kernel, tested on GTX 760 Ti OEM with CUDA-6.5 on Windows 8.1 machine