Complete implementation of QuickFind algorithm