Implement Quick Find Algorithm