formatted code, added quicksort timer