The Greedy Algorithm for a Class of Latti e Polyhedra andits