added some more techniques for Union Find algorithm.