Adding the method stubs for the Union-find API.