modify codebook training and quantization.
code clean
final version
product quantization complete
complish product quantization