added print function to trie
fixed bug in trie_insert that prevented tries from having multiple levels