list being freed properly. array now copies contents of list. next step is to modify p_quicksort to compare strings instead of numbers