bit manipulation p1