Rewrite pop_1st_bit() to be endian independent