A data structure for lattice representation