Adds a mapping from the specified key to the specified value, replacing the previous mapping from the specified key if there was one.