Solution to sort, quicksort for implementation