Create min_cost_path