Optimizing Vector Quantization Methods by Machine Learning Algorithms