Java implementation of trie. University project.