Added RLEDecoder class and moved it into another file rle-decoder.js