adding the traveling salesman solution logic to commuter.js itself