Lecture 5: added union-by-rank, performance should now be inverse-ackermann