Study of data structures in ruby