Add example program which performs bit encoding and decoding