basic Logic gates written in prolog for the AND, OR, NAND, NOR, XOR, XNOR and NOT gates