add test data for kruskal algorithm and remove hard code