ADPCM compression and decompression algorithm