function B = insertionSort(A)
  j = 2;
  while (j <= length(A))
    B = insert(A, j); j = j + 1;
  end;
