com.mattg.util
Returns the index for key, adding to the dictionary if necessary.
Test if key is already in the dictionary