Word Prediction using a Trie in C