Truth table generator