Added Trie data structure code and also modified graph code