biological logic circuits