Implement a first version of Kruskal (without union find highlighting for now).