set.rb (from ruby's stdlib) is actually based on a hash. http://bit.ly/14Wxip2