[FIX] Fixing connectedComponents().

Use standard Union-Find data structure instead of traversal algorithm that appears to be non-working anyway.
Merge pull request #7 from holtgrewe/hotfix/connected_components

[FIX] Fixing connectedComponents().