Dimensionality-recursive vector quantization