Pattern Search Methods in the Presence of Degeneracy