Change arena data structure from linked list to rbtree