Genetic algorithm solution to the Tower of Babylon problem