trie ds using files

These codes uses the concept of trie data structure to store it into
files for future searching