begin quicksort
fix mergesort so it's not O(n^2)