constructor() {
    this._parents = {};
    this._ranks = {};
    this._sizes = {};
  }
Disjoint Set Forest data structure.
Allows fast subset merging and querying.
New elements lie in their own one-element subsets by default.

@constructor