The genetic algorithm for connection cube