Added CUDA kernel for calculating hash codes