add a new create random array function
 modified quicksort function