Update bits.cpp