vector quantization for video encoding