UnionFind

- working and but not really optimized UnionFind (probably it's better
to use Typed Arrays instead of regular Arrays)
- rangeStream fix