nnn/ccn 3x3 pattern.
Add all other patterns.
Minimize the 4mod5 function
Minimize circuits with and without 3x3 pattern.