Packing algorithm now distributes evenly when possible