Rewrite bit.hpp