Implementing common data structures in the Ruby Language