Create KruskalAlgorithm.java