detect and show prefix errors
build a tree from a list of codewords
dummy nodes during layout for proper tree shape