/** insert sort * O(n*n) **/ function insertSort(arr) { for(let i = 1 ,l = arr.length;i0&&tem