Added binary compression function for DPCM