Implemented UDP search algorithm