Dictionary lookup should be faster than binary search of a sorted array once you have more than a few dozen elements.