Path compression after weighting (QU find)