Genetic algorithm for solving minimum spanning tree problem VC code