faster modulo and division by interpolation search