Warehouse optimization for reverse logistics