Implemented QuickFindUF class