find the min and max of bitwise operations AND, OR, XOR