Add a simple bits flipping function.