implemented Dijkstra's algorithm and added in-class code for Apr19