Implemented parallelization in encoding.

Distributed work among three threads when encoding.
Refined parallelization in econding.

Necessary filler nulls are inserted through text and the now simplified
encoding process uses 10 threads.