Foreach     in  
 If   )
  Foreach     in  
    ;
   If     {TH: threshold to deliver}
      deliver     to   ;
      break;
   End
  End
 End
End
Algorithm 1: SecureLookup ( ).