Modify Kruskal to use union find and modify client C output to meet spec