Quick Find Algorithm