fixed a latbin.histogram bug and implemented DLattice quantization