adhoc/STL/Union Find