Vector quantization CUDA