add compilation option for 2-bit encoding

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>