Double Array Trie written in Java