add a nonrecursive version of pair route planning