bpe function

Construct a Byte Pair Encoding model