Reimplement countTrailingZeros using bsf.