added clean quicksort implementation
up to a threshhold all vectors up to a certain length will be handled by
insertionsort.
partition now uses the median of three (beginning,midle,end) out of
the array as a pivot element.