set nth bit of a number