initial working RLE decompression code