SDATA decompression

The algorithm still needs a major optimization (since it was reverse-engineered and re-written by hand), but decompression should be working now.