Input files.
Quick Union implementation.