add lattice points program