added library functions logical and, or, xor