Disjoint-set data structure | Hacker News Reader