Then an sorted array with a binary search should be the fastest method