public void exchange(int indexA, int indexB) {
        if(isGraphicSimulation)
        {
            resetColor();
            lastExchangeA = indexA;
            lastExchangeB = indexB;
        }

        Double temp = Tab[indexA];
        Tab[indexA] = Tab[indexB];
        Tab[indexB] = temp;
        
        if(isGraphicSimulation )
        {
            notifyListner();
        }
    }