LZMA Decoder written in TypeScript