Bit twiddling utility: Added several different bit operations