bpe_encode function

Tokenise text alongside a Byte Pair Encoding model