Week 1 "Union Find" algorithms.