Parallel architectures for vector quantization