quickSort implemented but not optimal as pivot Selection is naive