Modified insertion sort
Modified Insertion Sort