public static int [] GenerateOneDimensional()
        {
            Random rnd = new Random();
            int    a   = rnd.Next(1, 30);

            int[] newarray = new int[a];
            for (int i = 0; i < newarray.Length; i++)
            {
                newarray[i] = rnd.Next(-99, 99);
            }
            ConsoleHelper.WriteText($"New array is:");
            ConsoleHelper.WriteArray(newarray);
            return(newarray);
        }
 public static void BubbleSort(int [] array)
 {
     for (int i = 0; i < array.Length; i++)
     {
         for (int j = i + 1; j < array.Length; j++)
         {
             if (array[i] > array[j])
             {
                 int a = array[i];
                 array[i] = array[j];
                 array[j] = a;
             }
         }
     }
     ConsoleHelper.WriteText($"Sorted array is:");
     ConsoleHelper.WriteArray(array);
 }