Code for a genetic algorithm to solve the Travelling Salesman Problem.