Binary search on token list to find start of matches

This should make generating matching tokens somewhat faster (on average).