new encoder: pair

Similiar to byte-pair encoding, but work at values level, not bytes.