Notice that by switching the search order, we were able to skip two searches that would not have produced matches. [0149] At this point we can look for 10 in set A or 15 in set B. Since our last search was an element of B against the set A, we will continue with this process until there is a reason to change.