Insertion sort in random array