adds working key_for_min_value.rb. all tests pass