Remove `xrange`; type i_b and j_b as int16