Adjust index structure and tools.

Changes:
1. Integrate sort and maketree into init_database.
2. Let freq live in index tree leaves, out of dictionary.
3. Let all fields of TreeType become uint, avoiding negative wrong values
   and maximizing utilization of value range.
Let dict & tree buffers be const.
Remove redundant pho_id in PhraseIntervalType.
Rename variables for parent of phrases.
Integrate char functions into dict.

char.c and char-private.h are removed.
Integrate name of Get*First() & Get*Next().

"vocabulary" contains both "phrase" and "word".
Separate `dict' & `tree' access.

dict.c / tree.c only accesses dict / tree.
Data exchange is through tree_cur_pos & tree_end_pos.
Let word_data use phrase_data from above.
Let TreeType be endian-independent.

Use unsigned char array for bytes of each field. Get/PutUint24 is added
for 24-bit R/W 24-bit R/W support.