add Lattice class, streamline memory for Line class