decoder read dimension data from input file
update codebook