implemented free(self)

pops any key, where element[0] is the hash(self) of the node