Reimplemented in C. Old ruby implementation (compatible) now in ruby-lold.