public void addWord(String word) {
		Node curNode = root;
		int length = word.length();
		for (int i = 0; i < length; i++) {
			char curChar = word.charAt(i);
			if (!curNode.map.containsKey(curChar)) {
				Node nextNode = new Node();
				curNode.map.put(curChar, nextNode);
				curNode = nextNode;
			} else {
				curNode = curNode.map.get(curChar);
			}
		}
		curNode.isEnd = true;
	}