fixed quick_find implementation (slow union)