Transcribe the Function to the Encoded Values
0 ¨  00
1 ¨  01
2 ¨  10
Function
Encoding
Encoded Function
Here first argument becomes uv,
         second becomes xy.
 (x+y)%3 0 1 2
0 0 1 2
1 1 2 0
2 2 0 1