add double-tree algorithm / change return value of prim and kruskal to graph