Implementation of the A star algorithm for solving the problem of the traveling salesman