code: public int add(int x, int y) {
      assert(x >= 0 && x < getFieldSize() && y >= 0 && y < getFieldSize());
      return x ^ y;
    }
docs: Compute the sum of two fields
  @param x input field
  @param y input field
  @return result of addition