Learning bitwise operators