Implementation of Data Structures in Ruby