Pure-ruby implementation of the rbtree gem