disjoint set data structure

welcome to shbcf.ru