Creating a bidirectional conversion table