moved kruskal to main file