Add support for bitwise operations and unit tests for verification.