book-based draft of red-black tree