add quick-find algorithm