An Optimal Search Procedure