failed attempt (left the pivot in the middle of nowhere)
modified
working version of quick sort sampling pivot from 3 values. swaps at the beginning in func. partition