implementing a quantization for MP
 trying with a urban database