genetic algorithm nbd