Greedy algorithm for TSM