Import from old source management
tw_rbtree.h pulled from FreeBSD red-black implementation