added graph class and Dijkstra algorithm