Generate combinatorial logic using genetic algorithm