switch EqualLeadingZeroCount to use bitwise logic rather than Switch