basic draft of red-black tree