Add Union-Find dataset to alg.[hc]

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>