added numbers2poly and poly2numbers in lattice.h/.cc and some changes in get_nice_poly