Adding a helper class for the krushkal algorithm and adding testKrushkals.