Added the AVX quantization and multibit writing to the basic encoder.

Consolidated headers, removed dead code and commented functionality.