Added RedBlackTree node type, test, some bugs fixed