add the partition function to simply the qSort function
add the non-recursive quick sort function named qSort2