def xsearch(m):
    "Exhaustive search for the best tour"
    best = m.make_tour()
    for t in m.each_tour():
        if t.cost() < best.cost():
            best = t
    return best
