Takes a number of addresses and returns the most efficient order to visit.