added Dijkstra and isBipartite. Also change minKey to minDistance which is shared by Prim and Dijkstra