implemented trie in java
uncommited changes