Efficient adaptive vector quantization using history information