addd difference coding and quantization. missing: do that blockwise