A reb black tree implementation