Small combinatorial logic simulator