Union-Find base implementation and tests.Moved _contex property from H0
nodes to generic size nodes.