Basically:
- Fast, sorted insert.
- Returns position of where an item would be inserted if it's not found in the data structure.
An array with binary search satisfies my second requirement, but it's still prohibitively slow for insertion. What solution might work best?