solution for the leetcode problem 'insertion sort list'