implements RedBlackTree and add Tree interface