A Genetic Algorithm for a class of Critical Node Problems