Add function to insert new key-value pair