Data Consistency for Linograms and Planograms