Vector Quantization for Classification in a Simple Network