merge sort.
quick find and quick union.
weighted quick union.
UF and Stack