search algorithm test