Compute the minimum wastage for a cutlist