Changed Dijkstra into Route class