Shortest Path
A country has n cities connected by m bidirectional roads. Road k connects cities u_k and
v_k and takes w_k minutes to travel.
Find the minimum time to travel from city 1 to city n.
Input
The first line contains n and m (2 ≤ n ≤ 10^5, 0 ≤ m ≤ 2·10^5).
Each of the next m lines contains u v w (1 ≤ u, v ≤ n, 1 ≤ w ≤ 10^9). There may be multiple
roads between the same pair of cities, and roads from a city to itself.
Output
Print the minimum travel time from city 1 to city n, or -1 if city n is unreachable.