* SortedDictionary.cs (NodeHelper): Rename from NodeComparer.
(NodeHelper.CreateNode): New.
(Item.set): Move responsibility of creating new nodes to RBTree.Intern.
* RBTree.cs (INodeHelper): Rename from INodeComparer.
(INodeHelper.CreateNode): New.
(Intern): Use it to create a new node if no node is passed in.
svn path=/trunk/mcs/; revision=76926
* System.dll.sources: Add RBTree.cs.
In System.Collections.Generic:
Make add and remove operations O(log n).
* SortedDictionary.cs: Rewrite to use the red-black tree
implementation from RBTree.cs.
* RBTree.cs: Some more refactoring. Rename Insert() to Intern(),
and modify semantics slightly. Replace Contains() with Lookup().
In Test/System.Collections.Generic:
* SortedDictionaryTest.cs (AddNullKeyNullable): Enable.
svn path=/trunk/mcs/; revision=76537