move zigzag lookup into rle encoding routine and made some performance improvements
run zigzag, rle and category coding in parallel for each image channel