Implemented binary bitwise and shift functions.