steps toward generalization of minimal trie building
added javadocs
trying to generalize tries