Update quantize.m

Add comments + remove redundant code