pgm 22.7, run length encoder: block IO works, encoding yet to be written