Updated .gitignore, added the project file and redone the problem A
using disjoint data sets (union-find algorithm) and a Map instead of an
LinkedList to represent the graph