https://blog.dasomoli.org/algorithm-union-find-disjoint-set-structure/
[Algorithm] Union & Find - Disjoint-set structure