QuickFind and QuickUnion. Basic implementation.
Displays the cost of array access