Vector Quantization as Sparse Least Square Optimization