A Search Algorithm for the Global Extremum of a Discontinuous Function