Now I\'ve always heard binary search trees are faster to build from randomly selected data than ordered data, simply because ordered data requires explicit rebalancing to keep t
Try this: database on treap.
http://code.google.com/p/treapdb/