Modified the quicksort code to conform to the semantics of the libc qsort fucntion.
Changed all the types to size_t to match libc.