Finds the optimal detour route between two routes