add quantization. the mytypes.h and saliency.h is legacy c code, use them carefully.