Java code for Sparse Vector Quantization