Quick union with path compression