Add quickunion implementation