added some stuff from Lecture 1 -- union find stuff
changed stuff for the quick-find implementation