Implement hash table in ruby