code: public void addCell(int... elements) {
          SortedSet<Integer> cell = new TreeSet<Integer>();
          for (int element : elements) {
              cell.add(element);
          }
          this.cells.add(cell);
      }
docs: Adds a new cell to the end of the partition containing these elements.
  
  @param elements the elements to add in a new cell