Added bitwise operations to maths class