private void LogMatrix(Matrix preparedMatrix)
 {
     Console.WriteLine();
     foreach (var row in preparedMatrix.EnumerateRows())
     {
         foreach (var elem in row)
         {
             Console.Write($"{elem} ");
         }
         Console.WriteLine();
     }
 }