Made bestLength and bestTour global.