All binary search trees from data structures 101 will do that.
That is my 'Non-answer: pick-of-the-week'.
In reply to Re^2: Sparse Array by BrowserUk in thread Sparse Array by rajaguha