implemented Hash#rehash