maintain sorted tree list
no need for hasChar(), we have chars() hidden up there among the comments
refactor encodeChar so reverse afterwards isn't needed
implemented convert
implemented codeBits
implemented the useless mergeCodeTables
implemented quickEncode