Boolean circuit rewiring - Lam, Tak-Kei