creating rbtree