check if a particular bit is set or unset of a number