a rough implementation of RedBlackTree