Improved algorithm for order containing only free samples.