Implementing threaded gates (the JK latch and all other circuits could probably work with such implementation)