impelementation of quick sort algorithm
using three way partition and picking up middle element as pivot
implement insertion sort and optimise quicksort by setting cutoff value
to run insertion sort
change test function to generate data sets automatically