p2 first commit
add qsort' and decouple pivot function
pivot index
add median3
final version