basic insertion sort
recursive version of insertion sort
inversion pair algo for problem 2-4 using modified merge sort