Added .gitignore
Added computation of connected components in graph