codec_support/vq: calculate full cluster distortion instead of an average