Genetic algorithm for the optimization of a packing line