Finds a value in a special array without using linear search.