reorder initialisation of attributes in gamma code based runlength encoder class