updated quicksort3.  It now works properly for some cases, however larger cases it does not work properly for.