What exactly are the tradeoffs of adding an index?
If the array of numbers is mutable, the index also needs to be a modifiable structure (like a tree).
What exactly are the tradeoffs of adding an index?