POJ 2001, Shortest Prefixes  Trie