movePointer(pointerIndex, toIndex, toPointeeReference) {
        var pointer = this.pointersForVisualization.getPointer(pointerIndex);
        if (toIndex !== -1) {
            pointer.movePointerToNewNode(toIndex, toPointeeReference, this.JsavLinkedList.getJsavLinkedList(), this.visualizer, this.pointersForVisualization);
            this.visualizer.umsg('change pointer ' + pointer.getName(0) + ' pointee');
            //this.JsavLinkedList.layout();
        } else //make the pointer null
            pointer.makeNull(this.visualizer);
    }
/**
     * move a pointer based on its index inside the list of pointers for a step, to any position in the linked list
     * @param {Integer} pointerIndex pointer index inside the list of pointers for a step
     * @param {Integer} toIndex the index for a node in the Linked list to be pointed by the pointer
     */
move a pointer based on its index inside the list of pointers for a step, to any position in the linked list
@param {Integer} pointerIndex pointer index inside the list of pointers for a step
@param {Integer} toIndex the index for a node in the Linked list to be pointed by the pointer
move a pointer based on its index inside the list of pointers for a step to any position in the linked list @param { Integer } pointerIndex pointer index inside the list of pointers for a step @param { Integer } toIndex the index for a node in the Linked list to be pointed by the pointer
movePointer(pointerIndex, toIndex, toPointeeReference) {
        var pointer = this.pointersForVisualization.getPointer(pointerIndex);
        if (toIndex !== -1) {
            pointer.movePointerToNewNode(toIndex, toPointeeReference, this.JsavLinkedList.getJsavLinkedList(), this.visualizer, this.pointersForVisualization);
            this.visualizer.umsg('change pointer ' + pointer.getName(0) + ' pointee');
        } else 
            pointer.makeNull(this.visualizer);
    }
movePointer ( pointerIndex , toIndex , toPointeeReference ) { var pointer = this . pointersForVisualization . getPointer ( pointerIndex ) ; if ( toIndex !== - 1 ) { pointer . movePointerToNewNode ( toIndex , toPointeeReference , this . JsavLinkedList . getJsavLinkedList ( ) , this . visualizer , this . pointersForVisualization ) ; this . visualizer . umsg ( 'change pointer ' + pointer . getName ( 0 ) + ' pointee' ) ; } else pointer . makeNull ( this . visualizer ) ; }
move a pointer based on its index inside the list of pointers for a step, to any position in the linked list
 @param {Integer} pointerIndex pointer index inside the list of pointers for a step
 @param {Integer} toIndex the index for a node in the Linked list to be pointed by the pointer
move a pointer based on its index inside the list of pointers for a step to any position in the linked list @param { Integer } pointerIndex pointer index inside the list of pointers for a step @param { Integer } toIndex the index for a node in the Linked list to be pointed by the pointer
//this.JsavLinkedList.layout(); //make the pointer null