code: public void remainder(int[] dividend, int[] divisor) {
      for (int i = dividend.length - divisor.length; i >= 0; i--) {
        int ratio =
          divTable[dividend[i + divisor.length - 1]][divisor[divisor.length - 1]];
        for (int j = 0; j < divisor.length; j++) {
          int k = j + i;
          dividend[k] = dividend[k] ^ mulTable[ratio][divisor[j]];
        }
      }
    }
docs: Compute the remainder of a dividend and divisor pair. The index in the
  array corresponds to the power of the entry. For example p[0] is the
  constant term of the polynomial p.
  @param dividend dividend polynomial, the remainder will be placed here when return
  @param divisor divisor polynomial