Created insertion sort