compiled and running, this is a prims MST