C extension adding bitwise operations on numbers