Defining a pack / encode for run length encoding.