fixed some stuff in DisjointSets and added some comments