public void add(S sequence) {
        int start = currentEnd;
        this.sequence.add(sequence);
        suffix = new Suffix<>(currentEnd, currentEnd, this.sequence);
        activePoint.setPosition(root, null, 0);
        extendTree(start, this.sequence.getLength());
    }
public void add ( S sequence ) { int start = currentEnd ; this . sequence . add ( sequence ) ; suffix = new Suffix < > ( currentEnd , currentEnd , this . sequence ) ; activePoint . setPosition ( root , null , 0 ) ; extendTree ( start , this . sequence . getLength ( ) ) ; }
Add a sequence to the suffix tree. It is immediately processed
and added to the tree.

@param sequence A sequence to be added.