add_to_dictionary function

Add an element to the data dictionary