Search algoritham optimaztion