code: @Override
    public int first()
    {
      if (isEmpty()) {
        throw new NoSuchElementException();
      }
      int min = Integer.MAX_VALUE;
      for (int element : cells) {
        if (element >= 0 && min > element) {
          min = element;
        }
      }
      return min;
    }
docs: {@inheritDoc}