Converts a number from base 10 to base 2 using bitwise operations.