adding bit twiddlings test code