Disjoint set data structure

First version