private void timer1_Tick(object sender, EventArgs e)
        {
            Bitmap bmp = new Bitmap(pictureBox1.Width, pictureBox1.Height);

            if (count >= 0)
            {
                HeapSort.Sort(lines, count, bmp);
                --count;
            }
            else
            {
                timer1.Enabled = false;
                MessageBox.Show("Готово");
            }
        }