Adding the seccond week programming assignment, modified quick sort, using first element, last element and median(firsst, middle, last element) as the pivot and then calculating the number of checks that need to be made in each case