Update insertion sort algorithm to fix edge case.

- Check if index is zero before attempting to compare with
  list[index - 1]; this avoids a possible segfault.

- Rename InsertionSort, to match naming in newer snippets.