Abstracted out the node emission in emitTree, which we will use in redblacktree to emit the red/blackness of the node