Implementation of Primm's and Kruskal's algorithms to see which is better in practice.