Grobner Basis and Polytopal Theory