implement public getter for lattice size