writing disjointset.cpp
disjointset written