Added a variable KRUSKAL_ITERATIONS to control the number of iterations done