Add minified for 2x2 patterns.
Combine algorithms to minimize circuit repeatedly.