Quick find algorith