updated search algorithm

Advertisement. Closing in 15 seconds.