Implemented bitwise shifts, logical operators, and comparisons.