Add QuickUnionUF algorithm