Implement Hash#index

TODO comment format is ported from Array#initialize