FIX: max value is one less than the number of values encodable by a given data structure!