Fixed bug where undefined was returned instead of null
Working, but basically useless lzw compression