docs: private int increment(int[] setTo, int max, int curCount)
      {
          setTo[0]++;
          curCount++;
          
          if(curCount <= max)
              return curCount;
          
          int carryPos = 0;
          
          while(carryPos < setTo.length-1 && curCount > max)
          {
              curCount-=setTo[carryPos];
              setTo[carryPos] = 0;
              setTo[++carryPos]++;
              curCount++;
          }
          
          return curCount;
      }