Programmable Logic Array (PLA)
Add a set of AND gates with perpendicular connections (3 in this case):