first step compute cheapest route