Correct find algorithm