private void Sort(object sender, EventArgs e)
        {
            ISortAlgorithm algorithm = algorithmDict[(string)algorithmList.SelectedItem];

            while (!algorithm.Finished())
            {
                StepChanges sc = algorithm.Step();
                RenderArray(sc);
                Thread.Sleep(Params.delay);
            }
            RenderArray(null);
            algorithm.Reset();
        }