An implementation of the genetic algorithm for solving the problem of the traveling salesman