added buildtrie() to build trie added time calculation for trie building optimised trie building in TrieTestingView