a simple redblacktree implementation in c