NEW: some more code for the algo class

TODO: heap still seems to have a bug since the Kruskal implementation returns different MST costs than Prim...