Added algorithms with classes and added Kruskals