memoize value to avoid recursion
memoize value to avoid recursion

apparently there is a purposeful cycle in the circuit. Once a gate
achieves its value it never changes again. this was not altogether clear
but is implied.

akatakritos/adventofcode