Got sorted array inserting into trie, fixed node count and character count functions