Disjoint set forest implementation in C