added method for returning all the valid words starting with prefix in a Trie