Extract from a file all the words which start with certain prefixes(using a radix tree data structure)