Add code for Red-Black trees