logic gate boolean algebra examples