Bit manipulation and testing functions

You can use this function to manipulate and to test a bit in a binary number.