Lecture 3, Quick-Union algo