fixed bug in trie data structure

fixed del function