Extending a Red-Black Tree in Ruby Through C