binary genetic algorithm python