Quantize Alg for Paper