moved the quicksort function to its own file