Adding disjointSet API for minimum spanning forest implementation