RB-Trees for Ruby - originally by OZAWA Takuma