Common red-black trees are not "simple" by default. But if you put a slight restriction on them and make them "left-leaning" , they will become easier. Take a look at this MSDN blog post .
I copied (with slight modifications) the code from this post here (in C #):
using System; using System.Collections.Generic; using System.Diagnostics;
source share